package com.modular.result;

import cn.hutool.core.util.ObjectUtil;
import com.modular.constant.BaseCodeDesc;

public class CodeDescUtils {

    public static boolean success(RspMessage message){
        if(ObjectUtil.isNotNull(message) && ObjectUtil.equal(message.getCode(), BaseCodeDesc.SUCCESS.getCode())){
            return Boolean.TRUE;
        }
        return Boolean.FALSE;
    }
}
